package xin.mashibo.genvictobutest.constant;

/**
 * 服务常量
 *
 * @author MaShibo
 *         on 2018/3/20
 */
public class ServiceConstant {

    public static final int STATUS_SUCCESS = 0;

    public static final int STATUS_FAIL = -1;

    public static final int STATUS_TIMEOUT = 10003;

    public static final int NONE_READCARD = 1111;

    ///////////////////////////////////////////////////////////////////////////
    // Bundle Key
    ///////////////////////////////////////////////////////////////////////////

    public static final String READCARD_KEY = "readCard";

    public static final String CONSUME_LIST_KEY = "consumeList";

    public static final String DEVICE_INFO_KEY = "deviceInfo";

    public static final String TRANSACTION_KEY = "transaction";

    public static final String MAC1_KEY = "mac1";

    public static final String CARDOWNER_KEY = "cardOwner";

    ///////////////////////////////////////////////////////////////////////////
    // Handler Msg
    ///////////////////////////////////////////////////////////////////////////


    public static final int MSG_CONNECT = 1;

    public static final int MSG_DISCONNECT = 2;

    public static final int MSG_READCARD = 3;

    public static final int MSG_READOWNER = 4;

    public static final int MSG_READCONSUME = 5;

    public static final int MSG_READDEVICE = 6;

    public static final int MSG_TRANSACTION = 7;

    public static final int MSG_MAC1 = 8;

    public static final int MSG_MAC2 = 9;

    ///////////////////////////////////////////////////////////////////////////
    // 卡片版本相关
    ///////////////////////////////////////////////////////////////////////////


    /**
     * 1.0卡片ping码
     */
    public final static String PING_10 = "888888";
    /**
     * 4.0卡片ping码
     */
    public final static String PING_40 = "313233343536";

    /**
     * 1.0卡片版本号
     */
    public static final String VERSION_10 = "10";

    /**
     * 4.0卡片版本号
     */
    public static final String VERSION_40 = "40";


    /**
     * 默认终端机编号
     */
    public final static String TERMINALNO = "1234567890FF";
    /**
     * 充值交易类型
     */
    public final static String PROCTYPE = "02";
    /**
     * 密钥索引号
     */
    public final static String KEYINDEX = "01";

}
